umask 0077

export CHARSET=UTF-8
export PATH="/usr/local/games:/usr/local/sbin:/usr/local/bin:/usr/games:/usr/bin"
export MANPATH="/usr/local/share/man:/usr/share/man"
export PAGER=less
export EDITOR=vim

if [ ! -r "$HOME/.inputrc" ]; then
	export INPUTRC=/etc/inputrc
else
	export INPUTRC="$HOME/.inputrc"
fi

if test -d /usr/share/profile.d/; then
	for profile in /usr/share/profile.d/*.sh; do
		test -r "$profile" && . "$profile"
	done
	unset profile
elif test -d /etc/profile.d/; then
	for profile in /etc/profile.d/*.sh; do
		test -r "$profile" && . "$profile"
	done
	unset profile
fi
